﻿using Ellwood.Manage.Common.Core.Basis.Entity;
using SqlSugar;

namespace Ellwood.Manage.Models.Entity;

/// <summary>
/// 用户信息
/// </summary>
[SugarTable("Sys_User")]
public class SysUser: BaseEntity
{
    
    /// <summary>
    /// 用户ID
    /// </summary>
    [SugarColumn(ColumnName = "UserId",IsIdentity = true,IsPrimaryKey = true)]
    public int UserId { get; set; }
    
    /// <summary>
    /// 用户名
    /// </summary>
    public string? UserName { get; set; }

    /// <summary>
    /// 登陆账号
    /// </summary>
    public string? Account { get; set; }

    /// <summary>
    /// 密码
    /// </summary>
    [SugarColumn(DefaultValue = "123456")]
    public string? Password { get; set; }
    
    /// <summary>
    /// 电话
    /// </summary>
    public string? Phone { get; set; }
    
    /// <summary>
    /// 手机号
    /// </summary>
    public string? Mobile { get; set; }
    
    /// <summary>
    /// 住址
    /// </summary>
    public string? Address { get; set; }
    
    /// <summary>
    /// 邮箱
    /// </summary>
    public string? Email { get; set; }
    
    /// <summary>
    /// QQ号
    /// </summary>
    public long Qq { get; set; }
    
    /// <summary>
    /// 微信号
    /// </summary>
    public string? WeChat { get; set; }
    
    /// <summary>
    /// 性别 1男（默认） 2女 0未知
    /// </summary>
    public int Sex { get; set; }
    
    /// <summary>
    /// 上次登陆时间
    /// </summary>
    public DateTime LastLoginTime { get; set; }
    
}